package com.xiebishe.mylibrary.net.retrofit;

/**
 * 约定异常
 */
public class RxERROR {
    /**
     * 未知错误
     */
    public static final int UNKNOWN = 1000;
    /**
     * 解析错误
     */
    public static final int PARSE_ERROR = 1001;
    /**
     * 网络错误
     */
    public static final int NETWORK_ERROR = 1002;
    /**
     * 协议出错
     */
    public static final int HTTP_ERROR = 1003;
    /**
     * 未授权错误，属于HTTP_ERROR的一种，这里单独列出来，是因为经常需要处理
     */
    public static final int UNAUTHORIZED_ERROR = 1004;
    /**
     * 证书出错
     */
    public static final int SSL_ERROR = 1005;


    /**
     * 资源不存在
     */
    public static final int RES_NOT_FOUND = 609;
    public static final int RES_NOT_FOUND_2 = 700;
    /**
     * 敏感词
     */
    public static final int RES_IS_BLOCKED = 742;

    /**
     * 服务器维护
     */
    public static final int SERVER_MAINTENANCE = 888;
}